package com.leyou.gateway.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@Data
//@Component
@ConfigurationProperties(prefix = "ly.cors") //属性配置类，目的：接收application.yml中自定义的配置信息
public class CORSProperties {

    private List<String> allowedOrigins;
    private Boolean allowedCredentials;
    private List<String> allowedMethods;
    private List<String> allowedHeaders;
    private Long maxAge;
    private String filterPath;

}



